Ply-rs
Ply-rs is a small library built to read and write the PLY file format (also Polygon File Format, Standford Triangle Format). The library supports all three subformats: ascii, big endian, and little endian.
It focuses on two main points:
- An easy and fast start.
- High performance if you're willing to do some things yourself.
Getting started
Dependency
Add to your Cargo.toml
:
[]
= "0.1.3"
Add to your root:
extern crate ply_rs;
Read a ply file
This is the easiest way to read a ply file:
extern crate ply_rs;
use ply_rs as ply;
/// Demonstrates simplest use case for reading from a file.
Write ply file
The simplest case of writing a ply file:
extern crate ply_rs;
use ;
use ;
/// Demonstrates simplest use case for reading from a file.
For more complicated examples, please see the examples.
This implementation is mainly based on these specifications with additions from here.